package com.itsu.api.controllerApi;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RequestMapping("messages")
public interface IMControllerApi {

    /**
     * 通过环信Id查找用户详情
     * @param huanxinId
     * @return
     */
    @GetMapping("userinfo")
    public ResponseEntity queryUserInfoByUserName(@RequestParam("huanxinId") String huanxinId);

    /**
     * 添加环信联系人
     * @param map
     * @return
     */
    @PostMapping("contacts")
    public ResponseEntity contacts(@RequestBody Map<String, String> map);

    /**
     * 好友名单
     * @param map
     * @return
     */
    @GetMapping("contacts")
    public ResponseEntity findContacts(@RequestBody Map<String, String> map);

    /**
     * 点赞名列
     * @param map
     * @return
     */
    @GetMapping("likes")
    public ResponseEntity findLikesUsers(@RequestBody Map<String, String> map);

    /**
     * 喜欢名列
     * @param map
     * @return
     */
    @GetMapping("loves")
    public ResponseEntity findLovesUsers(@RequestBody Map<String, String> map);

    /**
     * 评论名列
     * @param map
     * @return
     */
    @GetMapping("comments")
    public ResponseEntity findCommentsUsers(@RequestBody Map<String, String> map);

    /**
     * 公告信息
     * @param map
     * @return
     */
    @GetMapping("announcements")
    public ResponseEntity findAnnouns(@RequestBody Map<String, String> map);

}
